package com.cloudatum.controller;

import com.cloudatum.service.ActivityListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 接受通知
 * Created by Administrator on 2015/11/9.
 */
@RestController
@RequestMapping("notice")
public class NoticeController {

    @Autowired
    private ActivityListService activityListService;

    @RequestMapping("isOver")
    public void isOver(String activityId){
        activityListService.setActivityOver(activityId);
        activityListService.sendNextActivity();
    }

}
